﻿<UserControl x:Class="SharpGym.Silverlight.Views.Aluno.EditAluno" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="300"
             d:DesignWidth="400">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <TextBlock Text="{StaticResource NomeText}" Grid.Row="0" Grid.Column="0"
                   Style="{StaticResource TextBlockLabel}" />
        <TextBox x:Name="Nome" Text="{Binding Nome, Mode=TwoWay}" Grid.Row="0" Grid.Column="1" Style="{StaticResource TextBoxInput}" />
        <TextBlock Text="{StaticResource AniversarioText}" Grid.Row="1" Grid.Column="0"
                   Style="{StaticResource TextBlockLabel}" />
        <TextBox x:Name="Aniversario" Text="{Binding StringFormat=\{0:d\}, Path=Aniversario, Mode=TwoWay}" Grid.Row="1" Grid.Column="1"
                 Style="{StaticResource TextBoxInput}" />
        <TextBlock Text="{StaticResource TelefoneText}" Grid.Row="2" Grid.Column="0"
                   Style="{StaticResource TextBlockLabel}" />
        <TextBox x:Name="Telefone" Text="{Binding Telefone, Mode=TwoWay}" Grid.Row="2" Grid.Column="1"
                 Style="{StaticResource TextBoxInput}" />
        <Button Click="ButtonBase_OnClick" Grid.Row="3" Width="100" Grid.ColumnSpan="2" Margin="10">Salvar</Button>
    </Grid>
</UserControl>